
project (edu-net)
cmake_minimum_required(VERSION 2.6)  

cmake_policy(SET CMP0015 OLD)

add_definitions(-DUNICODE -D_UNICODE -DPCAP_DONT_INCLUDE_PCAP_BPF_H)

set(SRC_LIST   
    edu-net.cpp
    relay.cpp
)  

INCLUDE_DIRECTORIES(
    lib/libpcap/Include
    lib/libjson/include
)

LINK_DIRECTORIES(
    ../lib/libpcap/Lib
    ../lib/libjson/lib
)


SET(CMAKE_C_COMPILER mipsel-openwrt-linux-gcc)
SET(CMAKE_CXX_COMPILER mipsel-openwrt-linux-g++)

ADD_EXECUTABLE(edunet ${SRC_LIST})
TARGET_LINK_LIBRARIES(edunet pcap)
